package com.qire.common.constant;

import com.qire.common.BuildConfig;

/**
 * 接口请求地址资源管理
 */
public class Url {


    //测试接口：qrcomic.com
    //线上接口：qiremanhua.com
    private static final String domainRoot = BuildConfig.domainRoot;
    private static final String domain = "https://api."+ domainRoot;
    private static final String v1 = domain + "/v1";
    private static final String v2 = domain + "/v2";
    private static final String v3 = domain + "/v3";
    private static final String v4 = domain + "/v4";
    private static final String v5 = domain + "/v5";
    private static final String v6 = domain + "/v6";

    public static final String domain_m = "https://m." + domainRoot;

    public static final String tag_local_chapter = "tag_local_chapter";

    //--------------------------------6.0版本-------------------------------------------

    /** 上报安装设备信息 */
    public static final String StatInstall = v6 + "/report/stat_install";
    /** 获取协议版本信息 */
    public static final String ProtocolVar = v6 + "/my/protocol_version_control";
    /** 获取推送状态信息 */
    public static final String PushStateInfo = v6 + "/jpush/req_switch";
    /** 切换推送状态信息 */
    public static final String PushStateToggle = v6 + "/jpush/rep_switch";

    /** 获取首页启动配置信息(原首页活动接口，但内容增多不太像活动接口了，像APP启动时的系统配置) */
    public static final String StartupConfig = v6 + "/index/activity";
    /** 获取全局广告配置信息 */
    public static final String GlobalAdvertConfig = v6 + "/god/ad";


    /** 首页头部用户信息 */
    public static final String indexUserInfo = v6 + "/index/user_info";

    /** 用户账户->首页用户信息刷新 */
    public static final String myIndex = v6 + "/my/index";

    /** 我的->我的账户 */
    public static final String account_index = v6 + "/account/index";

    /** 我的->我的账户->金币支出记录 */
    public static final String CoinExpenditureRecordData = v6 + "/account/coin_out";
    /** 我的->我的账户->金币收入记录 */
    public static final String CoinIncomeRecordData = v6 + "/account/coin_in";

    /** 我的->我的账户->金豆支出记录 */
    public static final String BeanExpenditureRecordData = v6 + "/account/bean_out";
    /** 我的->我的账户->金豆收入记录 */
    public static final String BeanIncomeRecordData = v6 + "/account/bean_in";
    /** 我的->我的账户->金豆过期记录 */
    public static final String BeanExpiredRecordData = v6 + "/account/bean_expire";

    /** 我的->我的账户->用户购买记录 */
    public static final String PurchaseHistoryData = v6 + "/account/purchase_book";




    /** 我的->任务列表 */
    public static final String TaskList = v6 + "/task/get_all";
    /** 我的->任务列表->签到 */
    public static final String SignIn = v6 + "/sign/sign_in";
    /** 我的->任务列表->签到->双倍领金豆 */
    public static final String SignInRewardDouble = v6 + "/sign/sign_dbl";

    /** 我的->我的消息 */
    public static final String MessageCenterPageData = v6 + "/message/my";
    /** 我的->我的消息->单独消息已阅 */
    public static final String MessageReadOnSingle = v6 + "/message/sync_read";
    /** 我的->我的消息->全部消息已阅 */
    public static final String MessageReadOnAll = v6 + "/message/sync_read_all";
    /** 我的->我的消息->评论和点赞已阅 */
    public static final String MessageReadOnType = v6 + "/message/sync_read_type";

    /** 我的->我的消息->消息:评论列表 */
    public static final String MessageCommentPageData = v6 + "/message/reply";
    /** 我的->我的消息->消息:点赞列表 */
    public static final String MessageLikePageData = v6 + "/message/like";


    /** 我的->我的消息->消息:评论详情 */
    public static final String CommentDetailData = v6 + "/comment/info";
    /** 漫画评论列表 */
    public static final String comment_list = v6 + "/comment/list_get";
    /** 评论回复列表 */
    public static final String comment_reply_list = v6 + "/comment/reply_list_get";


    /** 青少年模式查询状态 */
    public static final String TeensModeQueryState = v6 + "/teenager/my";
    /** 青少年模式启用 */
    public static final String TeensModeEnable = v6 + "/teenager/open_up";
    /** 青少年模式禁用 */
    public static final String TeensModeDisable = v6 + "/teenager/close_down";
    /** 青少年模式修改密码 */
    public static final String TeensModeModifyPassword = v6 + "/teenager/modify_pwd";
    /** 青少年模式验证密码 */
    public static final String TeensModeVerifyPassword = v6 + "/teenager/verify_pwd";


    /** 首页-书架页-收藏列表 */
    public static final String HomeBookshelfFavoritesComicList = v6 + "/bookshelf/user_shelf_list_get";
    /** 首页-书架页-历史记录 */
    public static final String HomeBookshelfHistoryComicList = v5 + "/bookshelf/user_read_list_get";

    /** 首页-推荐页-根据模块ID刷新模块数据接口(换一批按钮) */
    public static final String HomeRecommendModuleRefresh = v6 + "/index/fresh_more";
    /** 首页-推荐页-VIP专区 */
    public static final String HomeRecommendVipZoneData = v6 + "/index/vip_zone";
    /** 首页-推荐页-综合热门推荐 */
    public static final String HomeRecommendHotData = v6 + "/index/recommend";
    /** 首页-推荐页-更新 */
    public static final String HomeRecommendUpdateData = v6 + "/index/renew";
    /** 首页-推荐页-女频 */
    public static final String HomeRecommendGirls = v6 + "/index/girls";
    /** 首页-推荐页-男频 */
    public static final String HomeRecommendBoys = v6 + "/index/boys";

    /** 首页-分类页-具体分类列表数据 */
    public static final String HomeClassificationComicList = v6 + "/book/list_get";


    /** 排行榜API接口 */
    public static final String comicRank = v6 + "/index/ranking";

    /** 财务信息-赠送 */
    public static final String award_list_get = v6 + "/account/award_list_get";

    /** 我的-账户与安全-关联账户-手机关联账户 */
    public static final String AccountToggleLogin = v6 + "/user/associate_login";
    /** 我的-账户与安全-关联账户 */
    public static final String AccountRelatedInfoList = v6 + "/associate/list_users";
    /** 我的-账户与安全-关联账户-验证关联账户 */
    public static final String AccountAssociatedVerify = v6 + "/associate/asso_verify";
    /** 我的-账户与安全-关联账户-添加关联账户 */
    public static final String AccountAssociatedAdd = v6 + "/associate/asso_add";


    /** 用户账户->手机号码绑定 */
    public static final String MobileBind = v6 + "/user/mobile_bind";
    /** 用户账户->发送验证码 */
    public static final String FetchVerificationCode = v6 + "/user/mobile_msg_code";
    /** 用户账户-验证码校验 */
    public static final String CheckVerificationCode = v6 + "/user/code_verify";
    /** 用户账户->修改密码 */
    public static final String UpdatePassword = v6 + "/user/mobile_setpwd";

    /** 用户账户->手机登录 */
    public static final String MobileLogin = v6 + "/user/mobile_login";
    /** 用户账户->阿里手机一键登录 */
    public static final String AliMobileLogin = v6 + "/user/ali_mobile_login";

    /** 用户账户->QQ登录 */
    public static final String QqLogin = v6 + "/user/qq_login";
    /** 用户账户->微信登录 */
    public static final String WeChatLogin = v6 + "/user/weixin_login";

    /** 用户账户->用手机注册账户 */
    public static final String RegisterAccount = v6 + "/user/mobile_reg";
    /** 用户账户->QQ绑定 */
    public static final String QqBind = v6 + "/user/qq_bind";
    /** 用户账户->QQ解绑 */
    public static final String QqUnbind = v6 + "/user/qq_unbind";
    /** 用户账户->微信绑定 */
    public static final String WeChatBind = v6 + "/user/weixin_bind";
    /** 用户账户->微信解绑 */
    public static final String WeChatUnbind = v6 + "/user/weixin_unbind";
    /** 用户账户->原密码校验 */
    public static final String ValidateOldPassword = v6 + "/user/pwd_verify";
    /** 用户账户->更换手机号码 */
    public static final String ReplaceMobile = v6 + "/user/replace_mobile";
    /** 用户账户->注销帐户前核对 */
    public static final String CheckBeforeCancellationAccount = v6 + "/user/to_cancel";
    /** 用户账户->注销账户 */
    public static final String CancellationAccount = v6 + "/user/cancellation_account";

    /** 漫画数据->快速阅读 */
    public static final String ComicQuickReadData = v6 + "/book/quick";
    /** 漫画数据->漫画详情 */
    public static final String comicBookDetail = v6 + "/book/detail";
    /** 漫画详情-随机推荐(猜你修寒) */
    public static final String comicBookDetailCommend = v6 + "/book/rand_info_get";
    /** 漫画数据->漫画目录信息 */
    public static final String comicDirectoryInfo = v6 + "/chapter/getAllChapters";
    /** 漫画数据->漫画章节信息 */
    public static final String comicChaptersInfo = v6 + "/chapter/detail";
    /** 漫画数据->预加载漫画章节信息 */
    public static final String PreInstallComicChaptersInfo = v6 + "/chapter/down";
    /** 漫画数据->更新阅读记录 */
    public static final String UpdateReadHistory = v6 + "/chapter/see_record";
    /** 漫画数据->获取选择章节的总价 */
    public static final String ChapterBuyTotal = v6 + "/chapter/buy_total";
    /** 漫画数据->漫画章节解锁状态 */
    public static final String ComicChaptersUnlockState = v6 + "/chapter/chapter_state";
    /** 漫画数据->批量解锁 */
    public static final String ChapterBuyBatch = v6 + "/chapter/buy_batch";
    /** 漫画数据->漫画章节购买解锁 */
    public static final String ComicChapterUnlockByBuy = v6 +"/chapter/buy";
    /** 漫画数据->漫画章节广告解锁 */
    public static final String ComicChapterUnlockByAd = v6 +"/chapter/ad_unlock";
    /** 解锁详情 */
    public static final String ChapterDownBatch = v6 + "/chapter/down_batch";
    /** 漫画数据->阅读最后一张结束时推送数据 */
    public static final String ComicReadFinishPush = v6 + "/book/chapter_end";




    /** 支付页面:阅读页推广福利校验页， */
    public static final String WelfareCheckInfo = v6 + "/trade/welfare";
    /** 支付页面:获取市场营销信息(带首充福利) */
    public static final String MarketWelfareInfo = v6 + "/trade/wares_welfare";
    /** 支付页面:获取市场营销信息,包含：wares商品,首次交易等信息 */
    public static final String MarketInfo = v6 + "/trade/wares";

    /** VIP->会员套餐购买页数据 */
    public static final String MembersPackagePageData = v6 + "/vip/book";
    /** VIP->会员套餐购买页->每日奖励领取 */
    public static final String MembersPackageDailyAward = v6 + "/vip/receive_award_bean";
    /** VIP->会员套餐信息 */
    public static final String MembersPackage = v6 + "/trade/wares_vip";

    /** 微信下单 */
    public static final String WeChatPlaceOrder = v6 + "/tradecreate/wxpay";
    /** 支付宝下单 */
    public static final String AliPayPlaceOrder = v6 + "/tradecreate/alipay";
    /** 微信同步验证 */
    public static final String WeChatTradeVerify = v6 + "/tradeverify/wxpay";
    /** 支付宝验证 */
    public static final String AliPayTradeVerify = v6 + "/tradeverify/alipay";


    /** 交易接口->代付选项接口 */
    public static final String PayRechargeOption = v6 + "/trade/wares_take";
    /** 交易接口->创建好友代付订单 */
    public static final String CreateOrderPay = v6 + "/order/create_order_pay";


    //--------------------------------5.0版本-------------------------------------------

    //首页推荐模块->更多推荐API接口
    public static final String v5_moreRecommend = v5 + "/index/list_more";
    //首页-新作API接口
    public static final String v5_newComic = v5 + "/index/xinzuo";


    // 书架->是否添加到书架
    public static final String whetherJoinMyBookshelf = v5 + "/bookshelf/user_shelf_add";


    //用户账户->手机身份认证接口：验证手机是否注册以及状态
    public static final String v5_mobileAuthInfo = v5 + "/user/mobile_verify";
    //用户账户->修改昵称
    public static final String v5_nicknameUpdate = v5 + "/user/setting_nickname";
    //用户账户->更换手机号码(人工验证)
    public static final String ArtificialReplaceMobile = v5 + "/user/replace_mobile_verify";
    //用户账户->注销账户(人工审核)
    public static final String ArtificialCancellationAccount = v5 + "/user/cancellation_mobile";
    //用户账户->查询人工审核注销账户状态
    public static final String ArtificialCancellationQuery = v5 + "/user/to_cancellation_mobile";


    //漫画数据->漫画章节弹幕
    public static final String v5_comicBulletScreen_Fetch = v5 + "/roasts/getByChapter";
    //漫画数据->属性配置表
    public static final String v5_comicBulletScreen_Config = v5 + "/roasts/wow";
    //漫画数据->添加弹幕
    public static final String v5_comicBulletScreen_Add = v5 + "/roasts/addRoast";


    //我的->任务列表->任务领取奖励
    public static final String v5_receiveAward = v5 + "/my/receive_award";
    //我的->任务列表->获取签到信息
    public static final String sign_info = v5 + "/sign/sign_info";

    //我的->获取邀请好友信息
    public static final String invite_friends = v5 + "/card/user";


    // 提交编辑的资料
    @Deprecated
    public static final String my_edit_info = v5 + "/my/edit_info";
    public static final String my_edit_info_ext = v5 + "/my/edit_info_ext";



    // 更新配置
    public static final String update = v5 + "/wow/config";

    //--------------------------------4.0版本-------------------------------------------
    //VIP人气排行榜
    public static final String v4_vipRanking = v4 + "/my/vip_ranking";

    //漫画数据->人气上报
    public static final String v4_comicPopular = v4 + "/log/scroll";

    //领取免费vip
    public static final String v4_vip_exchange = v4 + "/log/vip_exchange";
    //书架推荐
    public static final String shelf_recomm = v4 + "/bookshelf/shelf_recomm";
    // 搜索结果
    public static final String book_search_list_get = v4 + "/book/search_list_get";

    //----------------------------3.0版本更新开始----------------------------------------
    //首页-所有分类
    public static final String AllClassifiedTag = v3 + "/book/cate";
    //开屏广告
    public static final String v3_advertise = v3 + "/rank/advertise";

    //应用评价
    public static final String v3_myEvaluation = v3 + "/my/evaluation";
    //自动购买
    public static final String v3_mySettingAutoPay = v3 + "/my/setting_auto_pay";
    //同类型书
    public static final String v3_sameTypeBook = v3 + "/book/same_type_book";
    //漫画数据->漫画章节点赞
    public static final String ChapterGiveLike = v3 + "/chapter/like";
    //分享漫画任务上报
    public static final String ShareComicTaskReport = v3 + "/my/share_report";
    //添加回复和评论
    public static final String comment_add = v3 + "/comment/add";
    //点赞
    public static final String comment_like = v3 + "/comment/like";
    // 建议反馈
    public static final String my_feedback_submit = v3 + "/my/feedback_submit";
    // 从书架移除
    public static final String my_user_shelf_delete = v3 + "/bookshelf/user_shelf_delete";
    // 删除一条阅读记录
    public static final String my_user_read_delete = v3 + "/bookshelf/user_read_delete";
    // 书架-同步书架记录
    public static final String my_sync_read = v3 + "/bookshelf/sync_read";
    // 热搜词
    public static final String book_hot_words = v3 + "/book/hot_words_get";
    // 关键字联想
    public static final String book_search_book = v3 + "/book/search_book";
    // 评论-举报
    public static final String comment_report = v3 + "/comment/report_add";
    // 消费记录
    public static final String income_list = v3 + "/account/income_list_get";
    // 财务信息-充值
    public static final String recharge_list_get = v3 + "/account/recharge_list_get";
    // 我的消息列表
    public static final String message_event_list = v3 + "/message/event_list_get";
    // 我的消息-公告消息
    public static final String message_notice_list = v3 + "/message/notice_list_get";
    // 我的消息-回复消息
    public static final String message_reply_list_get = v3 + "/message/reply_list_get";
    // 我的消息-回复消息-详情
    public static final String message_reply_get = v3 + "/message/reply_get";

    //----------------------------3.0版本更新结束----------------------------------------

    // 头像
    public static final String upload_img = "http://up.qiremanhua.com/pass/upload_img?imageTag=headimg";
    // 客服帮助
    public static final String page_help = "https://m."+domainRoot+"/my/kefu";
    // 测试网页和应用交互
    public static final String test_js_bridge = "https://m."+domainRoot+"/lab/index";
    // 等级定义
    public static final String level_definition = "https://m."+domainRoot+"/account/level_app.html";
    //帮助与反馈页面  上线地址m.qiremanhua.com
    public static final String helpAndFeedback_url = "https://m."+domainRoot+"/help/index.html";
    //优惠券使用规则
    public static final String couponRules_url = "https://res.qiremanhua.com/app/html/coupon.html";
    //未成年人协议
    public static final String underagedProtocol_url = "https://res.qiremanhua.com/app/protocol/underaged.html";
    //订阅公众号任务连接
    public static final String SubscribePublicAccountURL = "https://res.qiremanhua.com/app/html/mp.html";
    //无法解绑解决方案
    public static final String thirdPlatformCanNotBindSolutionURL = "https://res.qiremanhua.com/app/html/unable-bind-solution.html";
    //账户注销协议
    public static final String accountCancellationProtocol = "https://res.qiremanhua.com/app/protocol/cancellation.html";

    //服务条款(用户协议)
    public static final String serviceTerms_url = "https://res.qiremanhua.com/wap_v5/html/user.html";
    //隐私协议
    public static final String privacyPolicy_url = "https://m.qiremanhua.com/link/app/page/yinsixieyi_app/";
    //购买会员协议
    public static final String buyMemberProtocol_url = "https://res.qiremanhua.com/app/protocol/user.html";
    //购买会员协议
    public static final String rechargeProtocol_url = "https://res.qiremanhua.com/app/protocol/recharge.html";

}